﻿using System;
using System.Collections.Generic;
#if DEBUG
using System.Diagnostics;
#endif // #if DEBUG
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using FRL.DebtChased.Silverlight.Library;
using FRL.DebtChased.WorkflowObjects;

namespace FRL.DebtChased.WorkflowEditor.WorkflowItemEditors
{

	/// <summary>
	/// Declaration of ActionBaseCtrl class
	/// Base class for editing a workflow action
	/// </summary>
	public partial class ActionBaseCtrl : UserControl
	{

		/////////////////////////////////////////////////////////////
		// Attributes

		protected AddActionPanel m_pnlAddAction = null;

		private bool m_bBlockUpdateEvents = true;
		public bool BlockUpdateEvents
		{
			get { return m_bBlockUpdateEvents; }
			set { m_bBlockUpdateEvents = value; }
		}

		/////////////////////////////////////////////////////////////
		// Construction

		public ActionBaseCtrl()
		{

			// Initialize resources
			InitializeComponent();

		}

		/////////////////////////////////////////////////////////////
		// Implementation

		public virtual List<string> Validate()
		{
			throw new NotImplementedException();
			return null;
		}

		public virtual void UpdateControls(WorkflowAction_Base action)
		{
			throw new NotImplementedException();
		}

		public virtual void UpdateFromControls(ref WorkflowAction_Base action)
		{
			throw new NotImplementedException();
		}

		public virtual void InitializeControls()
		{
			throw new NotImplementedException();
		}

		/////////////////////////////////////////////////////////////
		// Event Handlers

		protected void ActionBaseCtrl_Loaded(object sender, RoutedEventArgs e)
		{

			// Get parent add-action panel, if there is one
			m_pnlAddAction = this.FindParent(typeof(AddActionPanel)) as AddActionPanel;

		}

	}

}
